package org.example.backend.repository;

import org.example.backend.model.GameScore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;

public interface GameScoreRepository extends JpaRepository<GameScore, Long> {
    @Query("SELECT g FROM GameScore g ORDER BY g.score DESC LIMIT 10")
    List<GameScore> findTop10ByOrderByScoreDesc();
} 